package com.tourism.home.controller.system;import com.tourism.home.entity.Result;import com.tourism.home.service.ConfigService;import com.tourism.home.utils.ResultUtil;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.web.bind.annotation.*;/** * @author wanglinli * at 18-4-10 下午9:27 * 注释:论坛参数配置控制器(public方法是要权限验证的) */@RestControllerpublic class ConfigController {    @Autowired    private ConfigService configService;    @GetMapping("/config/{configname}")    Result configname(@PathVariable("configname") String configname){        return ResultUtil.success(configService.getConfig(configname));    }}